<?php
/**
 *  Sample_Newinfo.php
 *
 *  @author     {$author}
 *  @package    Sample
 *  @version    $Id$
 */

/**
 *  Sample_NewinfoManager
 *
 *  @author     {$author}
 *  @access     public
 *  @package    Sample
 */
class Sample_NewinfoManager extends Ethna_AppManager
{
    function getInfo() {
    	// 一覧を取得
        $newinfo = $this->getObjectPropList(
            'newinfo', array('userid', 'sendtime', 'latitude', 'longitude'), null, null, 0, 10
        );
        
        // エラーチェック
        if (Ethna::isError($users)) {
            return false;
        }
        
        return $newinfo[1];
    }
}

/**
 *  Sample_Newinfo
 *
 *  @author     {$author}
 *  @access     public
 *  @package    Sample
 */
class Sample_Newinfo extends Ethna_AppObject
{
    /**
     *  property display name getter.
     *
     *  @access public
     */
    function getName($key)
    {
        return $this->get($key);
    }
}

?>
